<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <h2>{{title}}</h2>
        <h3>{{count + 5}}</h3>
    </div>
    <script>
        const vm = new Vue({
            //el:vue实例挂载的容器
            el:"#app",
            //vue 实例数据对象
            data:{
                title:"vue",
                msg:" I love you ",
                count:10,

            },
            //模板会自动挂载的元素，挂载内容都会被忽略
        //      template:`
        // <h2>{{title}}</h2>
        // `
        })
       
    </script>
</body>
</html>